#include "widget.h"
#include "./ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    //ui->pushButton->setStyleSheet("QPushButton{color:red;}");
    //this->setStyleSheet("QPushButton{color:red;}");
    //ui->pushButton->setStyleSheet("QPushButton { font-size: 50px} ");
    // 设置第1个按钮颜色为绿色
    //ui->pushButton->setStyleSheet("QPushButton { color: green; }");
}

Widget::~Widget()
{
    delete ui;
}
